<?php

namespace app\common\validate;

//引入底层验证器
use think\Validate;

class Project extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'proname' => ['require'],
        'backage' => ['require'],
        'userid' => ['require'],
    ];


    /**
     * 提示消息
     */
    protected $message = [
        'proname.require' => '项目名称必填',
        'proname.backage' => '项目储存路径不存在',
        'proname.userid' => '项目创建者必填',
    ];


    /**
     * 验证场景
     */
    protected $scene = [
        'add' => [],
        'edit' => []
    ];

}


